import request from '@/utils/request'

export function getFeedBackList(params) {
  return request({
    url: `/saleManagement/message/list`,
    method: 'get',
    params
  })
}

/**
 * 获取反馈数据个数
 * @returns
 */
export function getFeedBackCount() {
  return request({
    url: `/saleManagement/message/getFeedBackCount`,
    method: 'get'
  })
}
//回复消息
export function reply(carId, data) {
  return request({
    url: `/saleManagement/message/reply?carId=${carId}`,
    method: 'post',
    data
  })
}

/**
 * 删除反馈
 * @returns
 */
export function removeFeedBack(carId) {
  return request({
    url: `/saleManagement/message/removeFeedBack?carId=` + carId,
    method: 'delete'
  })
}


export default {
  getFeedBackList,
  getFeedBackCount,
  reply,
  removeFeedBack

}
